﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.Mvc;
using EnterpriseManagement;
using EnterpriseManagement.Models;
namespace EnterpriseManagement.Controllers
{
    public class MenuController : Controller
    {
        //
        // GET: /Menu/

        [Authorize]
        public ActionResult Menu()
        {
            if (FormsService.SuperUser(HttpContext.User.Identity.Name))
                return PartialView("SuperMenu");
            else
                return PartialView("GeneralMenu");
        }

    }
}
